package com.gcloud.dashboard;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.gcode.*;  
import com.example.gcode.R.drawable;
import com.utils.Constants;

public class DashboardDesign extends Activity {
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dashboard_layout);
        
        /**
         * Creating all buttons instances
         * */

        Button btn_archivos = (Button) findViewById(R.id.btn_archivos);
        
        Button btn_fotos = (Button) findViewById(R.id.btn_fotos);
        
        Button btn_configuracion = (Button) findViewById(R.id.btn_configuracion);
        
        Button btn_favoritos = (Button) findViewById(R.id.btn_favoritos);
        
        
        /**
         * Handling all button click events
         * */
        
        // Listening to News Feed button click
        btn_archivos.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(DashboardDesign.this, com.example.gcode.Archivos.class);
				i.putExtra(Constants.target,
						com.enums.TargetApi.GOOGLEDRIVE);
				startActivity(i);
			}
		});
        
        btn_fotos.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(), Fotos.class);
				startActivity(i);
			}
		});
        
        btn_configuracion.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(), com.gcloud.configuracion.Configuracion.class);
				startActivity(i);
			}
		});
        
        btn_favoritos.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// Launching News Feed Screen
				Intent i = new Intent(getApplicationContext(), Favoritos.class);
				startActivity(i);
			}
		});
    }
}